# -*- coding: utf-8 -*-

from flask import Flask
from flask_script import Manager
from flask_sqlalchemy import SQLAlchemy

# 创建Flask的实例对象 app
app = Flask(__name__)

# 将flask的实例对象app传入Manager模块，以便于后来的自定义命令启动
manager = Manager(app)

# 加载配置文件
app.config.from_pyfile("config/local_setting.py")

# 将lask的实例对象app传入SQLAlchemy模块，创建数据库对象db
db = SQLAlchemy(app)



